package com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiConditionDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.KpiDeptDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.dto.PaginationQueryDTO;
import com.paic.mhis.hcpms.quota.calculationreport.kpiinterface.intergration.dao.KpiDeptDAO;
import com.paic.pafa.biz.dao.BaseDAO;

@Service("kpiDeptDAO")
public class KpiDeptDAOImpl extends BaseDAO implements KpiDeptDAO {

	@Override
	public List<KpiDeptDTO> getKpiData(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		List<KpiDeptDTO> list = (List<KpiDeptDTO>) this._list("dept.querykpi", condition);
		return list;
	}

	@Override
	public List<KpiDeptDTO> getKpiAnalyzeData(PaginationQueryDTO condition) {
		// TODO Auto-generated method stub
		List<KpiDeptDTO> list = (List<KpiDeptDTO>) this._list("dept.querykpiAnalyze", condition);
		return list;
	}

	@Override
	public int getKpiAnalyzeCount(KpiConditionDTO condition) {
		// TODO Auto-generated method stub
		int count = this._getInt("dept.querykpiAnalyzeCount", condition);
		return count;
	}

}
